<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul,ol,li{
            list-style: none;
        }
        .tab{
            width: 600px;
            height: 400px;
            border: 10px solid #333;
            margin: 50px auto;
            display: flex;
            flex-direction: column;
        }
        ul{
            height: 60px;
            display: flex;
        }
        ol{
            flex: 1;
        }
        ul > li{
            flex:1 ;
        }
    </style>
</head>
<body>
    <div class="tab">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <ol>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ol>
    </div>
    <script>
       function Preson(name,age){
         this.name = name;
         this.age = age;
         this.sayHi = function(){console.log('hello world')};
         this.eat = function(){console.log('eating')};
         }
       var p1 = new Preson('tianbao',18);
       var p2 = new Preson('xijie',18);
       console.log(p1,p2);
       p1.sayHi();
       p2.eat();
    </script>
</body>
</html>